//
//  HLELowcostPeripherial.h
//  HLELowcostPeripherial
//
//  Created by hle1 on 2021/5/4.
//

#ifndef HLELowcostPeripherial_h
#define HLELowcostPeripherial_h

#import "HLEAdvertiser.h"
#import "HLELowcostPeripherialHeader.h"
#import "HLELowcostScheduler.h"
#import "HLELowcostUtil.h"
#import "HLELowcostBleInforModel.h"
#import "HLELowcostBleManager.h"


/// 信号量加锁
#define SemaphoreBegin \
static dispatch_semaphore_t semaphore; \
static dispatch_once_t onceToken; \
dispatch_once(&onceToken, ^{ \
    semaphore = dispatch_semaphore_create(1); \
}); \
dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);

#define SemaphoreEnd \
dispatch_semaphore_signal(semaphore);



#endif /* HLELowcostPeripherial_h */
